import request from '@/utils/request'


// 查询列表
export function list (query) {
  return request({
    url: '/vehicleModels/list',
    method: 'get',
    params: query
  })
}

// 查询详情
export function getItemDetail (id) {
  return request({
    url: '/vehicleModels/viewDetail?vehicleModelsId=' + id,
    method: 'get'
  })
}

// 新增车型
export function add (data) {
  return request({
    url: '/vehicleModels/add',
    method: 'post',
    data
  })
}

// 删除车型
// export function del () {
//   return request({
//     url: '/legalNotices/delete',
//     method: 'post',
//   })
// }

// 编辑车型
export function edit (data) {
  return request({
    url: '/vehicleModels/edit',
    method: 'post',
    data
  })
}